function setStorage(key,value){
	return new Promise((reslove,reject) =>{
		uni.setStorage({
			key:key,
			data:value,
			success:() =>{
				reslove('success');
			},
			fail:() =>{
				reject('fail');
			}
		})
	})
}

function getStorage(key){
	return new Promise((reslove,reject) =>{
		uni.getStorage({
			key:key,
			success:(res) =>{
				reslove(res);
			},
			fail:(error)=>{
				reject(error);
			}
		})
	})
}

export default {
	setStorage,
	getStorage
};